/*
 * PersistentGestureUtil.java
 *
 * Created on April 27, 2008, 2:54 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package sunflare.persistence;

/**
 *
 * @author Praveen
 */

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class PersistentGestureUtil {
    
    /** Creates a new instance of PersistentGestureUtil */
    public PersistentGestureUtil() {
    }

    private static final SessionFactory sessionFactory;

    static 
    {
            //try
            //{
                    sessionFactory = new Configuration().configure().buildSessionFactory();
            //}
            //catch( Throwable ex )
            //{
                    //System.err.println( "Initial SessionFactory creation failed" + ex );
                    //throw new ExceptionInitializerError( ex );
            //}
    }

    public static SessionFactory getSessionFactory()
    {
            return sessionFactory;
    }

    
    
}
